/*
 * @Date: 2024-03-01 11:07:23
 * @Auth: 463997479@qq.com
 * @LastEditors: 463997479@qq.com
 * @LastEditTime: 2024-03-01 15:16:26
 * @FilePath: \ztc-dp\src\router\index.js
 */
import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "",
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import("../App.vue"),
      redirect: "/home",

      children: [
        {
          path: "home",
          name: "Home",
          meta: { title: "home" },
          component: () => import("../views/overview/index.vue"),
        },
      ],
    },
  ],
});

export default router;
